#include "Card.h"

void Card::Load(char* name, Artifact* artifact)
{
	CardSpriteInfo.loadTexture(name);
	CardArtifact = artifact;
	flipped = false;
	showArtifact = false;
}

void Card::LoadTexture(char* spriteName)
{
	//Load the given spite texture
	CardSpriteInfo.loadTexture(spriteName);
	flipped = false;
}

void Card::LoadArtifact(Artifact* artifact)
{
	CardArtifact = artifact;
	flipped = false;
}

Artifact* Card::GetArtifact()
{
	return CardArtifact;
}

SpriteInfo* Card::GetSpriteInfo()
{
	return &CardSpriteInfo;
}

void Card::Flip(bool flip)
{
	flipped = flip;
}

void Card::show(bool aShow)
{
	showArtifact = aShow;
}

bool Card::isFlipped()
{
	return flipped;
}

bool Card::isCardShown()
{
	return showArtifact;
}